Skip to content

Close open file descriptors and update to fs' promise API#3

Open
AndreasWJ wants to merge 1 commit intofwdcp:masterfrom
AndreasWJ:fs-fix-3
Open

Close open file descriptors and update to fs' promise API#3
AndreasWJ wants to merge 1 commit intofwdcp:masterfrom
AndreasWJ:fs-fix-3

Conversation

@AndreasWJ
Copy link
Copy Markdown

Hi!

First off, thanks for releasing this module, it has helped me out a lot!
While using node-vpk I noticed that the error "EMFILE: Too many files open" would be thrown from time to time working with many VPK files. I was able to fix the error by closing the module's open file descriptors. In the mean time I upgraded to fs' promise API.

If you would like me to remove the fs promises I can do so. But to me it made more sense rewriting getFiles(...) as asynchronous since it deals with the file system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant